/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.client;

import com.xy.biz.base.domain.req.GetBomRequest;
import com.xy.biz.base.domain.req.ListBomRequest;
import com.xy.biz.base.domain.resp.GetBomResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2021-12-28
 */
public interface BomClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetBomResponse> getBom(GetBomRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetBomResponse>> listBomById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetBomResponse>> listBom(ListBomRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetBomResponse>> pageBom(ListBomRequest request);

}
